package com.gjk.ordering.system.web.admin.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "order")
public class OrderController {

    /**
     * 菜品添加
     * @return
     */
    @RequestMapping(value = "add",method = RequestMethod.GET)
    public String form(){
        return "order_add";
    }

    /**
     * 菜品列表
     * @return
     */
    @RequestMapping(value = "list",method = RequestMethod.GET)
    public String list(){
        return "order_list";
    }

    /**
     * 未完成订单列表
     * @return
     */
    @RequestMapping(value = "unaccomplishment",method = RequestMethod.GET)
    public String backlog(){
        return "order_unaccomplishment";
    }

    /**
     * 已完成订单列表
     * @return
     */
    @RequestMapping(value = "accomplishment",method = RequestMethod.GET)
    public String accomplishment(){
        return "order_accomplishment";
    }

    @RequestMapping(value = "food",method = RequestMethod.GET)
    public String food(){
        return "order_food";
    }

    @RequestMapping(value = "trolley",method = RequestMethod.GET)
    public String trolley(){
        return "order_trolley";
    }


    /**
     * 支付计算
     * @return
     */
    @RequestMapping(value = "play",method = RequestMethod.GET)
    public String play(){
        return "play";
    }

    /**
     * 账单管理
     * @return
     */
    @RequestMapping(value = "bill",method = RequestMethod.GET)
    public String bill(){
        return "bill";
    }


}
